]> git.sur5r.net Git - glabels/blob - glabels2/glabels.spec.in
2005-04-19 Jim Evins <evins@snaught.com>
[glabels] / glabels2 / glabels.spec.in
1 Summary: glabels is a GNOME program to create labels and business cards
2 Name:      glabels
3 Version:   @VERSION@
4 Release:   1
5 Copyright: GPL
6 Group: Applications/Publishing
7 URL: http://glabels.sourceforge.net/
8
9 Source: %{name}-%{version}.tar.gz
10 BuildRoot: %{_tmppath}/root-%{name}-%{version}
11 Prefix: %{_prefix}
12
13 BuildRequires: gtk2-devel >= @GTK_REQUIRED@
14 BuildRequires: libxml2-devel >= @LIBXML_REQUIRED@
15 BuildRequires: libgnomeui-devel >= @LIBGNOMEUI_REQUIRED@
16 BuildRequires: libbonoboui-devel >= @LIBBONOBOUI_REQUIRED@
17 BuildRequires: libgnomecanvas-devel >= @LIBGNOMECANVAS_REQUIRED@
18 BuildRequires: libgnomeprintui22-devel >= @LIBGNOMEPRINT_REQUIRED@
19 BuildRequires: libglade2-devel >= @LIBGLADE_REQUIRED@
20
21 Requires: gtk2 >= @GTK_REQUIRED@
22 Requires: libxml2 >= @LIBXML_REQUIRED@
23 Requires: libgnomeui >= @LIBGNOMEUI_REQUIRED@
24 Requires: libbonoboui >= @LIBBONOBOUI_REQUIRED@
25 Requires: libgnomecanvas >= @LIBGNOMECANVAS_REQUIRED@
26 Requires: libgnomeprintui22 >= @LIBGNOMEPRINT_REQUIRED@
27 Requires: libglade2 >= @LIBGLADE_REQUIRED@
28
29 %description
30 gLabels is a lightweight program for creating labels and
31 business cards for the GNOME desktop environment.
32 It is designed to work with various laser/ink-jet peel-off
33 label and business card sheets that you'll find at most office
34 supply stores.
35
36 %prep
37 %setup
38
39 %build
40 %configure
41 %{__make} %{?_smp_mflags}
42
43 %install
44 %{__rm} -rf %{buildroot}
45 %makeinstall
46 %find_lang %{name}
47
48 desktop-file-install --vendor gnome --delete-original \
49         --add-category X-Red-Hat-Base              \
50         --dir %{buildroot}%{_datadir}/applications \
51         %{buildroot}%{_datadir}/applications/%{name}.desktop
52
53 %{__rm} -rf %{buildroot}/var/scrollkeeper
54 %{__rm} -f %{buildroot}%{_datadir}/mime/XMLnamespaces
55 %{__rm} -f %{buildroot}%{_datadir}/mime/globs
56 %{__rm} -f %{buildroot}%{_datadir}/mime/magic
57 %{__rm} -rf %{buildroot}%{_datadir}/mime/application
58
59
60 %clean
61 %{__rm} -rf %{buildroot}
62
63 %post
64 scrollkeeper-update
65 if (update-mime-database -v &> /dev/null); then
66   update-mime-database "%{_datadir}/mime" > /dev/null
67 fi
68
69 %postun
70 scrollkeeper-update
71 if (update-mime-database -v &> /dev/null); then
72   update-mime-database "%{_datadir}/mime" > /dev/null
73 fi
74
75 %files -f %{name}.lang
76 %defattr(-, root, root)
77 %doc README COPYING COPYING-DOCS COPYING.LIBGLABELS ChangeLog NEWS AUTHORS INSTALL
78 %doc %{_datadir}/gnome/help/glabels/
79 %{_bindir}/glabels
80 %{_bindir}/glabels-batch
81 %{_libdir}/libglabels.*
82 %{_includedir}/libglabels/*
83 %{_datadir}/glabels/
84 %{_datadir}/pixmaps/*
85 %{_datadir}/omf/
86 %{_datadir}/applications/*.desktop
87 %{_datadir}/application-registry/*
88 %{_datadir}/mime-info/*
89 %{_datadir}/mime/packages/*
90 %{_datadir}/man/*
91
92 %changelog
93 * Sun Aug  8 2004 Jim Evins <evins@snaught.com>
94 - Added support for freedesktop.org mime database registration
95
96 * Sat Feb 21 2004 Jim Evins <evins@snaught.com>
97 - Added libglabels related files
98
99 * Tue Dec 23 2003 Jim Evins <evins@snaught.com>
100 - Added support for scrollkeeper
101
102 * Sat Oct 18 2003 Jim Evins <evins@snaught.com>
103 - Updated, based largely on Dag Wieers <dag@wieers.com> glabels.spec
104
105 * Sat May 19 2001 Jim Evins <evins@snaught.com>
106 - Created
107