]> git.pld-linux.org Git - packages/glabels.git/blob - glabels.spec
- 2.2.1
[packages/glabels.git] / glabels.spec
1 Summary:        gLabels - a GNOME2 program to create labels and business cards
2 Summary(pl.UTF-8):      gLabels - program dla GNOME2 do tworzenia etykiet i wizytówek
3 Name:           glabels
4 Version:        2.2.1
5 Release:        1
6 License:        GPL
7 Group:          Applications/Graphics
8 Source0:        http://dl.sourceforge.net/glabels/%{name}-%{version}.tar.gz
9 # Source0-md5:  0828bd732ba4c541616ca121407723f2
10 Patch0:         %{name}-desktop.patch
11 URL:            http://glabels.sourceforge.net/
12 BuildRequires:  autoconf
13 BuildRequires:  automake
14 BuildRequires:  evolution-data-server-devel >= 1.2
15 BuildRequires:  glib2-devel >= 1:2.12.0
16 BuildRequires:  gnome-common >= 2.8.0
17 BuildRequires:  gtk+2-devel >= 2.10.0
18 BuildRequires:  gtk-doc >= 1.0
19 BuildRequires:  intltool >= 0.21
20 BuildRequires:  libbonobo-devel >= 2.8.1
21 BuildRequires:  libglade2-devel >= 1:2.6.0
22 BuildRequires:  libgnomeui-devel >= 2.16.0
23 BuildRequires:  libtool
24 BuildRequires:  libxml2-devel >= 1:2.6.19
25 BuildRequires:  pkgconfig
26 BuildRequires:  rpmbuild(macros) >= 1.197
27 BuildRequires:  scrollkeeper
28 BuildRequires:  sed >= 4.0
29 Requires(post,postun):  desktop-file-utils
30 Requires(post,postun):  scrollkeeper
31 Requires:       %{name}-libs = %{version}-%{release}
32 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
33
34 %description
35 gLabels is a small stand-alone program for creating labels and
36 business cards.
37
38 %description -l pl.UTF-8
39 gLabels jest małym, samodzielnym programem do tworzenia etykiet i
40 wizytówek.
41
42 %package libs
43 Summary:        glabels shared libraries
44 Summary(pl.UTF-8):      Biblioteki współdzielone glabels
45 Group:          Libraries
46
47 %description libs
48 glabels shared libraries.
49
50 %description libs -l pl.UTF-8
51 Biblioteki współdzielone glabels.
52
53 %package devel
54 Summary:        Header files for glabels
55 Summary(pl.UTF-8):      Pliki nagłówkowe glabels
56 Group:          Development/Libraries
57 Requires:       %{name}-libs = %{version}-%{release}
58
59 %description devel
60 Header files for glabels.
61
62 %description devel -l pl.UTF-8
63 Pliki nagłówkowe glabels.
64
65 %package static
66 Summary:        glabels static library
67 Summary(pl.UTF-8):      Statyczna biblioteka glabels
68 Group:          Development/Libraries
69 Requires:       %{name}-devel = %{version}-%{release}
70
71 %description static
72 glabels staic library.
73
74 %description static -l pl.UTF-8
75 Statyczna biblioteka glabels.
76
77 %prep
78 %setup -q
79 %patch0 -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 %{__gtkdocize}
90 %{__aclocal}
91 %{__autoheader}
92 %{__automake}
93 %{__autoconf}
94 %configure \
95         --enable-gtk-doc \
96         --with-html-dir=%{_gtkdocdir} \
97         --disable-update-desktopdb \
98         --disable-update-mimedb
99         
100 %{__make}
101
102 %install
103 rm -rf $RPM_BUILD_ROOT
104
105 %{__make} install \
106         DESTDIR=$RPM_BUILD_ROOT
107
108 rm -rf $RPM_BUILD_ROOT%{_datadir}/{mime-info,application-registry}
109
110 %find_lang %{name} --with-gnome --all-name
111
112 %clean
113 rm -rf $RPM_BUILD_ROOT
114
115 %post
116 %scrollkeeper_update_post
117 %update_desktop_database_post
118
119 %postun
120 %scrollkeeper_update_postun
121 %update_desktop_database_postun
122
123 %post   libs -p /sbin/ldconfig
124 %postun libs -p /sbin/ldconfig
125
126 %files -f %{name}.lang
127 %defattr(644,root,root,755)
128 %doc AUTHORS ChangeLog README TODO
129 %attr(755,root,root) %{_bindir}/*
130 %{_datadir}/%{name}
131 %{_datadir}/mime/packages/*
132 %{_mandir}/man1/*.1*
133 %{_pixmapsdir}/%{name}
134 %{_pixmapsdir}/*.png
135 %{_desktopdir}/*.desktop
136 %{_omf_dest_dir}/%{name}
137
138 %files libs
139 %defattr(644,root,root,755)
140 %attr(755,root,root) %{_libdir}/lib*.so.*.*
141
142 %files devel
143 %defattr(644,root,root,755)
144 %attr(755,root,root) %{_libdir}/lib*.so
145 %{_gtkdocdir}/libglabels
146 %{_libdir}/lib*.la
147 %{_includedir}/libglabels
148 %{_pkgconfigdir}/*.pc
149
150 %files static
151 %defattr(644,root,root,755)
152 %{_libdir}/lib*.a
This page took 0.084278 seconds and 4 git commands to generate.