]> git.pld-linux.org Git - packages/glabels.git/blob - glabels.spec
31be7d029ede3702b7c98d1da1ccb729de39adbc
[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.4
5 Release:        1
6 License:        GPL
7 Group:          Applications/Graphics
8 Source0:        http://dl.sourceforge.net/glabels/%{name}-%{version}.tar.gz
9 # Source0-md5:  76a6f1f8055f75ab4204fdca79627006
10 Patch0:         %{name}-desktop.patch
11 URL:            http://glabels.sourceforge.net/
12 BuildRequires:  autoconf
13 BuildRequires:  automake
14 BuildRequires:  gnome-common >= 2.8.0
15 BuildRequires:  howl-devel >= 0.9.10
16 BuildRequires:  intltool >= 0.21
17 BuildRequires:  libbonobo-devel >= 2.8.1
18 BuildRequires:  libglade2-devel >= 1:2.5.1
19 BuildRequires:  libgnomeprintui-devel >= 2.10.2
20 BuildRequires:  libgnomeui-devel >= 2.10.0-2
21 BuildRequires:  libtool
22 BuildRequires:  libxml2-devel >= 1:2.6.19
23 BuildRequires:  pkgconfig
24 BuildRequires:  rpmbuild(macros) >= 1.197
25 BuildRequires:  scrollkeeper
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
79 mv -f po/{zh_TW.Big5,zh_TW}.po
80 sed -i -e 's/zh_TW\.Big5/zh_TW/' configure.in
81
82 %build
83 %{__glib_gettextize}
84 %{__libtoolize}
85 %{__intltoolize}
86 %{__gnome_doc_common}
87 %{__aclocal}
88 %{__autoheader}
89 %{__automake}
90 %{__autoconf}
91 %configure \
92         --disable-update-desktopdb \
93         --disable-update-mimedb
94
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 %postun libs -p /sbin/ldconfig
120
121 %files -f %{name}.lang
122 %defattr(644,root,root,755)
123 %doc AUTHORS ChangeLog README TODO
124 %attr(755,root,root) %{_bindir}/*
125 %{_datadir}/%{name}
126 %{_datadir}/mime/packages/*
127 %{_mandir}/man1/*.1*
128 %{_pixmapsdir}/%{name}
129 %{_pixmapsdir}/*.png
130 %{_desktopdir}/*.desktop
131 %{_omf_dest_dir}/%{name}
132
133 %files libs
134 %defattr(644,root,root,755)
135 %attr(755,root,root) %{_libdir}/lib*.so.*.*
136
137 %files devel
138 %defattr(644,root,root,755)
139 %attr(755,root,root) %{_libdir}/lib*.so
140 %{_libdir}/lib*.la
141 %{_includedir}/libglabels
142
143 %files static
144 %defattr(644,root,root,755)
145 %{_libdir}/lib*.a
This page took 0.035916 seconds and 2 git commands to generate.