Author: freetz Date: Sat Aug 19 10:03:03 2006 GMT Module: SPECS Tag: HEAD ---- Log message: - 0.18, removed locale-names, polish and word patches (obsolete) - added debug patch (switches off non-informative stdout) - don't install locales since they are incorporated into database and not used at all - don't create database and related files (previously marked %ghost) we doing it at install time - remove /usr/share/mime contents when package is completly removed - rel.0.1 - some feedback needed
---- Files affected: SPECS: shared-mime-info.spec (1.38 -> 1.39) ---- Diffs: ================================================================ Index: SPECS/shared-mime-info.spec diff -u SPECS/shared-mime-info.spec:1.38 SPECS/shared-mime-info.spec:1.39 --- SPECS/shared-mime-info.spec:1.38 Sun Jun 4 02:39:03 2006 +++ SPECS/shared-mime-info.spec Sat Aug 19 12:02:58 2006 @@ -3,28 +3,27 @@ Summary: Shared MIME-info specification Summary(pl): Wspólna specyfikacja MIME-info Name: shared-mime-info -Version: 0.17 -Release: 0.2 +Version: 0.18 +Release: 0.1 License: GPL Group: Applications #Source0: http://freedesktop.org/software/shared-mime-info/%{name}-%{version}.tar.gz Source0: http://freedesktop.org/~hadess/%{name}-%{version}.tar.gz -# Source0-md5: f1014ad243b5245279c0abe1b95d9e38 +# Source0-md5: 63398294a078dd9f72a7c4e122a668c8 Patch0: %{name}-dtd_path.patch -Patch1: %{name}-locale-names.patch -Patch2: %{name}-dicom.patch -Patch3: %{name}-polish.patch -Patch4: %{name}-word.patch -Patch5: %{name}-directory_alias_fix.patch +Patch1: %{name}-dicom.patch +Patch2: %{name}-directory_alias_fix.patch +Patch3: %{name}-debug.patch URL: http://www.freedesktop.org/wiki/Software/shared-mime-info BuildRequires: autoconf BuildRequires: automake BuildRequires: docbook-dtd412-xml BuildRequires: docbook-utils -BuildRequires: glib2-devel >= 2.0.0 +BuildRequires: glib2-devel >= 1:2.12.2 BuildRequires: intltool -BuildRequires: libxml2-devel >= 2.4.0 +BuildRequires: libxml2-devel >= 1:2.6.26 BuildRequires: pkgconfig +BuildRequires: rpmbuild(macros) >= 1.311 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description @@ -80,15 +79,14 @@ %patch0 -p1 %patch1 -p1 %patch2 -p1 -#%patch3 -p1 -#%patch4 -p0 -%patch5 -p1 +%patch3 -p1 %build %{__aclocal} %{__autoconf} %{__automake} -%configure +%configure \ + --disable-update-mimedb %{__make} db2html shared-mime-info-spec.xml @@ -99,36 +97,29 @@ %{__make} install \ DESTDIR=$RPM_BUILD_ROOT -%find_lang %{name} + +rm -rf $RPM_BUILD_ROOT%{_datadir}/locale %clean rm -rf $RPM_BUILD_ROOT %post -umask 022 -%{_bindir}/update-mime-database %{_datadir}/mime ||: +%update_mime_database + +%preun +# remove dirs and files created by update-mime-database +if [ "$1" = "0" ]; then + rm -rf /usr/share/mime/* +fi -%files -f %{name}.lang +%files %defattr(644,root,root,755) %doc shared-mime-info-spec README NEWS -%attr(755,root,root) %{_bindir}/* -%{_mandir}/man*/* -%ghost %{_datadir}/mime/globs -%ghost %{_datadir}/mime/magic -%ghost %{_datadir}/mime/XMLnamespaces -%ghost %{_datadir}/mime/application -%ghost %{_datadir}/mime/audio -%ghost %{_datadir}/mime/image -%ghost %{_datadir}/mime/inode -%ghost %{_datadir}/mime/message -%ghost %{_datadir}/mime/model -%ghost %{_datadir}/mime/multipart -%ghost %{_datadir}/mime/text -%ghost %{_datadir}/mime/video +%attr(755,root,root) %{_bindir}/update-mime-database %dir %{_datadir}/mime %dir %{_datadir}/mime/packages -%{_datadir}/mime/packages/* - +%{_datadir}/mime/packages/freedesktop.org.xml +%{_mandir}/man*/* %{_pkgconfigdir}/*.pc %define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`) @@ -137,6 +128,16 @@ All persons listed below can be reached at <cvs_login>@pld-linux.org $Log$ +Revision 1.39 2006/08/19 10:02:58 freetz +- 0.18, removed locale-names, polish and word patches (obsolete) +- added debug patch (switches off non-informative stdout) +- don't install locales since they are incorporated into database and not + used at all +- don't create database and related files (previously marked %ghost) we + doing it at install time +- remove /usr/share/mime contents when package is completly removed +- rel.0.1 - some feedback needed + Revision 1.38 2006/06/04 00:39:03 qboosh - pl.po needs update ================================================================ ---- CVS-web: http://cvs.pld-linux.org/SPECS/shared-mime-info.spec?r1=1.38&r2=1.39&f=u _______________________________________________ pld-cvs-commit mailing list [email protected] http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit
