]> git.pld-linux.org Git - packages/glabels.git/blob - glabels.spec
- reversed ldconfig changes
[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 Requires(post,postun):  /sbin/ldconfig
45
46 %description libs
47 glabels shared libraries.
48
49 %description libs -l pl
50 Biblioteki wspó³dzielone glabels.
51
52 %package devel
53 Summary:        Header files for glabels
54 Summary(pl):    Pliki nag³ówkowe glabels
55 Group:          Development/Libraries
56 Requires:       %{name}-libs = %{version}-%{release}
57
58 %description devel
59 Header files for glabels.
60
61 %description devel -l pl
62 Pliki nag³ówkowe glabels.
63
64 %package static
65 Summary:        glabels static library
66 Summary(pl):    Statyczna biblioteka glabels
67 Group:          Development/Libraries
68 Requires:       %{name}-devel = %{version}-%{release}
69
70 %description static
71 glabels staic library.
72
73 %description static -l pl
74 Statyczna biblioteka glabels.
75
76 %prep
77 %setup -q
78 %patch0 -p1
79 %patch1 -p1
80
81 mv -f po/{zh_TW.Big5,zh_TW}.po
82 sed -i -e 's/zh_TW\.Big5/zh_TW/' configure.in
83
84 %build
85 %{__glib_gettextize}
86 %{__libtoolize}
87 %{__intltoolize}
88 %{__gnome_doc_common}
89 %{__aclocal}
90 %{__autoheader}
91 %{__automake}
92 %{__autoconf}
93 %configure \
94         --enable-platform-gnome-2
95 %{__make}
96
97 %install
98 rm -rf $RPM_BUILD_ROOT
99
100 %{__make} install \
101         DESTDIR=$RPM_BUILD_ROOT
102
103 rm -rf $RPM_BUILD_ROOT%{_datadir}/{mime-info,application-registry}
104
105 %find_lang %{name} --with-gnome --all-name
106
107 %clean
108 rm -rf $RPM_BUILD_ROOT
109
110 %post
111 %scrollkeeper_update_post
112 %update_desktop_database_post
113
114 %postun
115 %scrollkeeper_update_postun
116 %update_desktop_database_postun
117
118 %post libs -p /sbin/ldconfig
119
120 %postun libs -p /sbin/ldconfig
121
122 %files -f %{name}.lang
123 %defattr(644,root,root,755)
124 %doc AUTHORS ChangeLog README TODO
125 %attr(755,root,root) %{_bindir}/*
126 %{_datadir}/%{name}
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.095899 seconds and 4 git commands to generate.