]> git.pld-linux.org Git - packages/glabels.git/blob - glabels.spec
9c214549abad1a17d1627b3a4788754e5f6f3b02
[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.1.3
5 Release:        1
6 License:        GPL
7 Group:          Applications/Graphics
8 Source0:        http://dl.sourceforge.net/glabels/%{name}-%{version}.tar.gz
9 # Source0-md5:  601e458ae52fb7a6db335d5e56321fc1
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:  gnome-common >= 2.8.0
16 BuildRequires:  gtk-doc >= 1.0
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:  scrollkeeper
27 BuildRequires:  sed >= 4.0
28 Requires(post,postun):  desktop-file-utils
29 Requires(post,postun):  scrollkeeper
30 Requires:       %{name}-libs = %{version}-%{release}
31 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
32
33 %description
34 gLabels is a small stand-alone program for creating labels and
35 business cards.
36
37 %description -l pl
38 gLabels jest ma³ym, samodzielnym programem do tworzenia etykiet i
39 wizytówek.
40
41 %package libs
42 Summary:        glabels shared libraries
43 Summary(pl):    Biblioteki wspó³dzielone glabels
44 Group:          Libraries
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
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 %{__gtkdocize}
89 %{__aclocal}
90 %{__autoheader}
91 %{__automake}
92 %{__autoconf}
93 %configure \
94         --enable-gtk-doc \
95         --with-html-dir=%{_gtkdocdir} \
96         --disable-update-desktopdb \
97         --disable-update-mimedb
98         
99 %{__make}
100
101 %install
102 rm -rf $RPM_BUILD_ROOT
103
104 %{__make} install \
105         DESTDIR=$RPM_BUILD_ROOT
106
107 rm -rf $RPM_BUILD_ROOT%{_datadir}/{mime-info,application-registry}
108
109 %find_lang %{name} --with-gnome --all-name
110
111 %clean
112 rm -rf $RPM_BUILD_ROOT
113
114 %post
115 %scrollkeeper_update_post
116 %update_desktop_database_post
117
118 %postun
119 %scrollkeeper_update_postun
120 %update_desktop_database_postun
121
122 %post   libs -p /sbin/ldconfig
123 %postun libs -p /sbin/ldconfig
124
125 %files -f %{name}.lang
126 %defattr(644,root,root,755)
127 %doc AUTHORS ChangeLog README TODO
128 %attr(755,root,root) %{_bindir}/*
129 %{_datadir}/%{name}
130 %{_datadir}/mime/packages/*
131 %{_mandir}/man1/*.1*
132 %{_pixmapsdir}/%{name}
133 %{_pixmapsdir}/*.png
134 %{_desktopdir}/*.desktop
135 %{_omf_dest_dir}/%{name}
136
137 %files libs
138 %defattr(644,root,root,755)
139 %attr(755,root,root) %{_libdir}/lib*.so.*.*
140
141 %files devel
142 %defattr(644,root,root,755)
143 %attr(755,root,root) %{_libdir}/lib*.so
144 %{_gtkdocdir}/libglabels
145 %{_libdir}/lib*.la
146 %{_includedir}/libglabels
147 %{_pkgconfigdir}/*.pc
148
149 %files static
150 %defattr(644,root,root,755)
151 %{_libdir}/lib*.a
This page took 0.074762 seconds and 2 git commands to generate.