]> git.pld-linux.org Git - packages/glabels.git/blob - glabels.spec
- updated to 2.0.2
[packages/glabels.git] / glabels.spec
1 Summary:        gLabels - a GNOME2 program to create labels and business cards
2 Summary(pl):    gLabels - program dla GNOME2 do tworzenia etykiet i wizytówek
3 Name:           glabels
4 Version:        2.0.2
5 Release:        1
6 License:        GPL
7 Group:          Applications/Graphics
8 Source0:        http://dl.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
9 # Source0-md5:  9293fd65bd858cd8c84c2cd166924c73
10 Patch0:         %{name}-install.patch
11 Patch1:         %{name}-desktop.patch
12 URL:            http://glabels.sourceforge.net/
13 BuildRequires:  autoconf
14 BuildRequires:  automake
15 BuildRequires:  gnome-common >= 2.8.0
16 BuildRequires:  intltool >= 0.21
17 BuildRequires:  libbonobo-devel >= 2.4.0
18 BuildRequires:  libglade2-devel >= 2.0.1
19 BuildRequires:  libgnomeprintui-devel >= 2.4.0
20 BuildRequires:  libgnomeui-devel >= 2.4.0
21 BuildRequires:  libtool
22 BuildRequires:  libxml2-devel >= 2.4.23
23 BuildRequires:  pkgconfig
24 BuildRequires:  sed >= 4.0
25 Requires(post,postun):  scrollkeeper
26 Requires(post,postun):  shared-mime-info
27 Requires:       %{name}-libs = %{version}-%{release}
28 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29
30 %description
31 gLabels is a small stand-alone program for creating labels and
32 business cards.
33
34 %description -l pl
35 gLabels jest ma³ym, samodzielnym programem do tworzenia etykiet i
36 wizytówek.
37
38 %package libs
39 Summary:        glabels shared libraries
40 Summary(pl):    Biblioteki wspó³dzielone glabels
41 Group:          Libraries
42
43 %description libs
44 glabels shared libraries.
45
46 %description libs -l pl
47 Biblioteki wspó³dzielone glabels.
48
49 %package devel
50 Summary:        Header files for glabels
51 Summary(pl):    Pliki nag³ówkowe glabels
52 Group:          Development/Libraries
53 Requires:       %{name}-libs = %{version}-%{release}
54
55 %description devel
56 Header files for glabels.
57
58 %description devel -l pl
59 Pliki nag³ówkowe glabels.
60
61 %package static
62 Summary:        glabels static library
63 Summary(pl):    Statyczna biblioteka glabels
64 Group:          Development/Libraries
65 Requires:       %{name}-devel = %{version}-%{release}
66
67 %description static
68 glabels staic library.
69
70 %description static -l pl
71 Statyczna biblioteka glabels.
72
73 %prep
74 %setup -q
75 %patch0 -p1
76 %patch1 -p1
77
78 mv -f po/{zh_TW.Big5,zh_TW}.po
79 sed -i -e 's/zh_TW\.Big5/zh_TW/' configure.in
80
81 %build
82 glib-gettextize --copy --force
83 %{__libtoolize}
84 intltoolize --copy --force
85 gnome-doc-common --copy
86 %{__aclocal}
87 %{__autoheader}
88 %{__automake}
89 %{__autoconf}
90 %configure \
91         --enable-platform-gnome-2
92 %{__make}
93
94 %install
95 rm -rf $RPM_BUILD_ROOT
96
97 %{__make} install \
98         DESTDIR=$RPM_BUILD_ROOT
99
100 %find_lang %{name} --with-gnome --all-name
101
102 %clean
103 rm -rf $RPM_BUILD_ROOT
104
105 %post
106 umask 022
107 /usr/bin/scrollkeeper-update
108 update-mime-database %{_datadir}/mime
109 [ ! -x /usr/bin/update-desktop-database ] || /usr/bin/update-desktop-database >/dev/null 2>&1 ||:
110
111 %postun
112 umask 022
113 /usr/bin/scrollkeeper-update
114 update-mime-database %{_datadir}/mime
115 [ ! -x /usr/bin/update-desktop-database ] || /usr/bin/update-desktop-database >/dev/null 2>&1
116
117 %post   libs -p /sbin/ldconfig
118 %postun libs -p /sbin/ldconfig
119
120 %files -f %{name}.lang
121 %defattr(644,root,root,755)
122 %doc AUTHORS ChangeLog README TODO
123 %attr(755,root,root) %{_bindir}/*
124 %{_datadir}/%{name}
125 %{_datadir}/application-registry/*
126 %{_datadir}/mime-info/*
127 %{_datadir}/mime/packages/*
128 %{_mandir}/man1/*.1*
129 %{_pixmapsdir}/%{name}
130 %{_pixmapsdir}/*.png
131 %{_desktopdir}/*.desktop
132 %{_omf_dest_dir}/%{name}
133
134 %files libs
135 %defattr(644,root,root,755)
136 %attr(755,root,root) %{_libdir}/lib*.so.*.*
137
138 %files devel
139 %defattr(644,root,root,755)
140 %attr(755,root,root) %{_libdir}/lib*.so
141 %{_libdir}/lib*.la
142 %{_includedir}/libglabels
143
144 %files static
145 %defattr(644,root,root,755)
146 %{_libdir}/lib*.a
This page took 0.0703 seconds and 3 git commands to generate.