]> git.pld-linux.org Git - packages/glabels.git/blob - glabels.spec
- /sbin/ldconfig deps for post* -p are autogenerated
[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:        3
6 License:        GPL
7 Group:          Applications/Graphics
8 Source0:        http://dl.sourceforge.net/glabels/%{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:  howl-devel >= 0.9.10
17 BuildRequires:  intltool >= 0.21
18 BuildRequires:  libbonobo-devel >= 2.8.1
19 BuildRequires:  libglade2-devel >= 1:2.5.1
20 BuildRequires:  libgnomeprintui-devel >= 2.10.2
21 BuildRequires:  libgnomeui-devel >= 2.10.0-2
22 BuildRequires:  libtool
23 BuildRequires:  libxml2-devel >= 1:2.6.19
24 BuildRequires:  pkgconfig
25 BuildRequires:  rpmbuild(macros) >= 1.197
26 BuildRequires:  sed >= 4.0
27 Requires(post,postun):  desktop-file-utils
28 Requires(post,postun):  scrollkeeper
29 Requires:       %{name}-libs = %{version}-%{release}
30 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31
32 %description
33 gLabels is a small stand-alone program for creating labels and
34 business cards.
35
36 %description -l pl
37 gLabels jest ma³ym, samodzielnym programem do tworzenia etykiet i
38 wizytówek.
39
40 %package libs
41 Summary:        glabels shared libraries
42 Summary(pl):    Biblioteki wspó³dzielone glabels
43 Group:          Libraries
44
45 %description libs
46 glabels shared libraries.
47
48 %description libs -l pl
49 Biblioteki wspó³dzielone glabels.
50
51 %package devel
52 Summary:        Header files for glabels
53 Summary(pl):    Pliki nag³ówkowe glabels
54 Group:          Development/Libraries
55 Requires:       %{name}-libs = %{version}-%{release}
56
57 %description devel
58 Header files for glabels.
59
60 %description devel -l pl
61 Pliki nag³ówkowe glabels.
62
63 %package static
64 Summary:        glabels static library
65 Summary(pl):    Statyczna biblioteka glabels
66 Group:          Development/Libraries
67 Requires:       %{name}-devel = %{version}-%{release}
68
69 %description static
70 glabels staic library.
71
72 %description static -l pl
73 Statyczna biblioteka glabels.
74
75 %prep
76 %setup -q
77 %patch0 -p1
78 %patch1 -p1
79
80 mv -f po/{zh_TW.Big5,zh_TW}.po
81 sed -i -e 's/zh_TW\.Big5/zh_TW/' configure.in
82
83 %build
84 %{__glib_gettextize}
85 %{__libtoolize}
86 %{__intltoolize}
87 %{__gnome_doc_common}
88 %{__aclocal}
89 %{__autoheader}
90 %{__automake}
91 %{__autoconf}
92 %configure \
93         --enable-platform-gnome-2
94 %{__make}
95
96 %install
97 rm -rf $RPM_BUILD_ROOT
98
99 %{__make} install \
100         DESTDIR=$RPM_BUILD_ROOT
101
102 rm -rf $RPM_BUILD_ROOT%{_datadir}/{mime-info,application-registry}
103
104 %find_lang %{name} --with-gnome --all-name
105
106 %clean
107 rm -rf $RPM_BUILD_ROOT
108
109 %post
110 %scrollkeeper_update_post
111 %update_desktop_database_post
112
113 %postun
114 %scrollkeeper_update_postun
115 %update_desktop_database_postun
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}/mime/packages/*
126 %{_mandir}/man1/*.1*
127 %{_pixmapsdir}/%{name}
128 %{_pixmapsdir}/*.png
129 %{_desktopdir}/*.desktop
130 %{_omf_dest_dir}/%{name}
131
132 %files libs
133 %defattr(644,root,root,755)
134 %attr(755,root,root) %{_libdir}/lib*.so.*.*
135
136 %files devel
137 %defattr(644,root,root,755)
138 %attr(755,root,root) %{_libdir}/lib*.so
139 %{_libdir}/lib*.la
140 %{_includedir}/libglabels
141
142 %files static
143 %defattr(644,root,root,755)
144 %{_libdir}/lib*.a
This page took 0.032121 seconds and 3 git commands to generate.