rpms/lat/devel lat.spec,1.4,1.5
Paul Howarth (pghmcfc)
fedora-extras-commits at redhat.com
Mon Jul 3 13:49:28 UTC 2006
Author: pghmcfc
Update of /cvs/extras/rpms/lat/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv5194
Modified Files:
lat.spec
Log Message:
- Make package arch-specific; files in %%{_libdir} rather than %%{_prefix}/lib
See: http://www.redhat.com/archives/fedora-packaging/2006-July/msg00013.html
- Expand tabs to shut rpmlint up
Index: lat.spec
===================================================================
RCS file: /cvs/extras/rpms/lat/devel/lat.spec,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- lat.spec 1 Jul 2006 12:09:15 -0000 1.4
+++ lat.spec 3 Jul 2006 13:49:27 -0000 1.5
@@ -1,19 +1,21 @@
-Name: lat
-Summary: LDAP Administration Tool
-Version: 1.0.6
-Release: 1%{?dist}
-License: GPL
-Group: Applications/Productivity
-Url: http://dev.mmgsecurity.com/projects/lat/
-Source0: http://dev.mmgsecurity.com/downloads/lat/lat-%{version}.tar.gz
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-BuildRequires: mono-devel, gtk-sharp2, gnome-keyring-devel
-BuildRequires: scrollkeeper, gettext
-BuildArch: noarch
-Requires: mono-data, gtk-sharp2
+Name: lat
+Summary: LDAP Administration Tool
+Version: 1.0.6
+Release: 2%{?dist}
+License: GPL
+Group: Applications/Productivity
+Url: http://dev.mmgsecurity.com/projects/lat/
+Source0: http://dev.mmgsecurity.com/downloads/lat/lat-%{version}.tar.gz
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+BuildRequires: mono-devel, gtk-sharp2, gnome-keyring-devel
+BuildRequires: scrollkeeper, gettext
+Requires: mono-data, gtk-sharp2
-Requires(post): scrollkeeper
-Requires(postun): scrollkeeper
+Requires(post): scrollkeeper
+Requires(postun): scrollkeeper
+
+# Debuginfo package would be empty as there are no binaries in this package
+%define debug_package %{nil}
%description
LAT stands for LDAP Administration Tool. The tool allows you to browse
@@ -25,25 +27,29 @@
%prep
%setup -q
+# Pick up the executable from %{_libdir} rather than %{_prefix}/lib
+%{__sed} -i -e s, at prefix@/lib, at libdir@, lat/lat.in
+
%build
%configure --disable-dependency-tracking
%install
%{__rm} -rf %{buildroot}
%{__make} DESTDIR=%{buildroot} \
- appicondir=%{_datadir}/icons/hicolor/22x22/apps \
- install
+ appicondir=%{_datadir}/icons/hicolor/22x22/apps \
+ ASSEMBLYlibdir=%{_libdir}/lat \
+ install
# Remove scrollkeeper crud (rebuilt in %%post)
%{__rm} -rf %{buildroot}%{_localstatedir}/scrollkeeper
# Fix up desktop file
/usr/bin/desktop-file-install \
- --vendor fedora \
- --delete-original \
- --dir %{buildroot}%{_datadir}/applications \
- --add-category X-Fedora \
- %{buildroot}%{_datadir}/applications/lat.desktop
+ --vendor fedora \
+ --delete-original \
+ --dir %{buildroot}%{_datadir}/applications \
+ --add-category X-Fedora \
+ %{buildroot}%{_datadir}/applications/lat.desktop
# Find translations
%find_lang %{name}
@@ -55,19 +61,19 @@
/usr/bin/scrollkeeper-update -q -o %{_datadir}/omf/%{name} || :
/bin/touch --no-create %{_datadir}/icons/hicolor || :
[ -x %{_bindir}/gtk-update-icon-cache ] && %{_bindir}/gtk-update-icon-cache \
- --quiet %{_datadir}/icons/hicolor || :
+ --quiet %{_datadir}/icons/hicolor || :
%postun
/usr/bin/scrollkeeper-update -q || :
/bin/touch --no-create %{_datadir}/icons/hicolor || :
[ -x %{_bindir}/gtk-update-icon-cache ] && %{_bindir}/gtk-update-icon-cache \
- --quiet %{_datadir}/icons/hicolor || :
+ --quiet %{_datadir}/icons/hicolor || :
%files -f %{name}.lang
%defattr(-,root,root,-)
%doc AUTHORS ChangeLog COPYING* README TODO
%{_bindir}/lat
-%{_prefix}/lib/lat/
+%{_libdir}/lat/
%{_datadir}/application-registry/lat.applications
%{_datadir}/applications/fedora-lat.desktop
%dir %{_datadir}/gnome/
@@ -79,6 +85,11 @@
%{_mandir}/man1/lat.1*
%changelog
+* Mon Jul 3 2006 Paul Howarth <paul at city-fan.org> - 1.0.6-2
+- Make package arch-specific; files in %%{_libdir} rather than %%{_prefix}/lib
+ See: http://www.redhat.com/archives/fedora-packaging/2006-July/msg00013.html
+- Expand tabs to shut rpmlint up
+
* Sat Jul 1 2006 Paul Howarth <paul at city-fan.org> - 1.0.6-1
- Update to 1.0.6
- Remove patch, now fixed upstream
@@ -101,9 +112,9 @@
- Spec file cleanups (#177580)
- No need to use update-desktop-database (no MIME type in desktop file)
- No need to remove .la files (artefact from old package)
-- Own directories %{_datadir}/gnome/ %{_datadir}/gnome/help/ %{_datadir}/omf/
-- Put icon in %{_datadir}/icons/hicolor/22x22/apps directory rather than
- %{_datadir}/pixmaps, and update icon cache post-install/removal
+- Own directories %%{_datadir}/gnome/{,help/} and %%{_datadir}/omf/
+- Put icon in %%{_datadir}/icons/hicolor/22x22/apps directory rather than
+ %%{_datadir}/pixmaps, and update icon cache post-install/removal
- Add doc files AUTHORS ChangeLog COPYING* README TODO
- Add missing buildreq gettext
- Remove redundant MONO_SHARED_DIR assignments in %%build and %%install
More information about the fedora-extras-commits
mailing list