-%define name @PACKAGE@
-%define ver @VERSION@
-%define RELEASE 1
-%define rel %{?CUSTOM_RELEASE} %{!?CUSTOM_RELEASE:%RELEASE}
-%define prefix /usr
-%define sysconfdir /etc
-
Summary: glabels is a GNOME program to create labels and business cards
-Name: %name
-Version: %ver
-Release: %rel
+Name: glabels
+Version: @VERSION@
+Release: 1
Copyright: GPL
-Group: Applications/Graphics
-Source: glabels-%{ver}.tar.gz
+Group: Applications/Publishing
URL: http://snaught.com/glabels/
-BuildRoot: /var/tmp/glabels-%{PACKAGE_VERSION}-root
-Requires: gtk+ >= 1.3
-Requires: gnome-libs >= 1.108
-Requires: gnome-print >= 1.109
-Requires: gdk-pixbuf >= 1.3
+Source: %{name}-%{version}.tar.gz
+BuildRoot: %{_tmppath}/root-%{name}-%{version}
+Prefix: %{_prefix}
+
+BuildRequires: gtk+-devel >= 1.2
+BuildRequires: libgnomeui-devel >= 2.0
+BuildRequires: libgnomecanvas-devel >= 2.0
+BuildRequires: libgnomeprint22-devel >= 2.2
+BuildRequires: libxml2-devel >= 2.4
%description
gLabels is a lightweight program for creating labels and
label and business card sheets that you'll find at most office
supply stores.
-
%prep
%setup
%build
-CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="-s" ./configure --prefix=%{prefix}
-make
+%configure
+%{__make} %{?_smp_mflags}
%install
-rm -rf $RPM_BUILD_ROOT
+%{__rm} -rf %{buildroot}
+%makeinstall
+%find_lang %{name}
-make prefix=$RPM_BUILD_ROOT%{prefix} install
+desktop-file-install --vendor gnome \
+ --add-category X-Red-Hat-Base \
+ --dir %{buildroot}%{_datadir}/applications \
+ %{buildroot}%{_datadir}/applications/%{name}.desktop
%clean
-rm -rf $RPM_BUILD_ROOT
+%{__rm} -rf %{buildroot}
-%files
+%files -f %{name}.lang
%defattr(-, root, root)
%doc README COPYING ChangeLog NEWS AUTHORS INSTALL
-%{prefix}/bin/glabels
-%{prefix}/bin/glabels-batch
-%{prefix}/share/*
+%doc %{_datadir}/gnome/help/glabels/
+%{_bindir}/*
+%{_datadir}/glabels/
+%{_datadir}/pixmaps/*
+%{_datadir}/applications/*.desktop
+%{_datadir}/application-registry/*
+%{_datadir}/mime-info/*
%changelog
+* Sat Oct 18 2002 Jim Evins <evins@snaught.com>
+- Updated, based largely on Dag Wieers <dag@wieers.com> glabels.spec
+
* Sat May 19 2001 Jim Evins <evins@snaught.com>
- Created