Spec clean-ups

This commit is contained in:
Michel Alexandre Salim 2012-05-05 10:38:18 +07:00
parent c436aa6f17
commit 609e74f2f3

View File

@ -2,7 +2,7 @@
Name: vala
Version: 0.17.0
Release: 1%{?dist}
Release: 2%{?dist}
Summary: A modern programming language for GNOME
Group: Development/Languages
@ -159,7 +159,6 @@ cp -p %{SOURCE3} COPYING
%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT
# remove symlinks, using alternatives
for f in %{vala_binaries} %{vala_tools_binaries};
@ -187,13 +186,6 @@ cp -p %{SOURCE2} $RPM_BUILD_ROOT%{_emacs_sitestartdir}
# make check
%if 0%{?fedora} >= 13
%else
%clean
rm -rf $RPM_BUILD_ROOT
%endif
%posttrans
/sbin/ldconfig
for f in %{vala_binaries};
@ -263,7 +255,6 @@ done
%files
%defattr(-,root,root,-)
%doc AUTHORS ChangeLog COPYING INSTALL MAINTAINERS NEWS README THANKS
%ghost %{_bindir}/vala
%ghost %{_bindir}/valac
@ -278,7 +269,6 @@ done
%{_mandir}/man1/valac-%{api_ver}.1.gz
%files devel
%defattr(-,root,root,-)
%{_includedir}/vala-%{api_ver}
%{_libdir}/libvala-%{api_ver}.so
%{_libdir}/pkgconfig/libvala-%{api_ver}.pc
@ -287,7 +277,6 @@ done
%{_datadir}/vala/Makefile.vapigen
%files tools
%defattr(-,root,root,-)
%ghost %{_bindir}/vala-gen-introspect
%ghost %{_bindir}/vapicheck
%ghost %{_bindir}/vapigen
@ -303,22 +292,22 @@ done
%{_mandir}/man1/vapigen-%{api_ver}.1.gz
%files doc
%defattr(-,root,root,-)
%doc %{_datadir}/devhelp/books/vala-%{api_ver}
%files -n emacs-%{name}
%defattr(-,root,root,-)
%doc emacs-vala/COPYING
%dir %{_emacs_sitelispdir}/%{name}
%{_emacs_sitelispdir}/%{name}/*.elc
%{_emacs_sitestartdir}/*.el
%files -n emacs-%{name}-el
%defattr(-,root,root,-)
%{_emacs_sitelispdir}/%{name}/*.el
%changelog
* Sat May 5 2012 Michel Salim <salimma@fedoraproject.org> - 0.17.0-2
- Spec clean-ups
* Thu May 3 2012 Michel Salim <salimma@fedoraproject.org> - 0.17.0-1
- Update to 0.17.0