]> git.pld-linux.org Git - packages/glabels.git/blob - glabels.spec
fa0000e0dcc72fe053d836326d251b192af36647
[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.0
5 Release:        1
6 License:        GPL
7 Group:          Applications/Graphics
8 Source0:        http://dl.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
9 # Source0-md5:  77a421ee35b64f01a0fbf5ada5944add
10 Patch0:         %{name}-install.patch
11 URL:            http://glabels.sourceforge.net/
12 BuildRequires:  autoconf
13 BuildRequires:  automake
14 BuildRequires:  gnome-common
15 BuildRequires:  intltool >= 0.21
16 BuildRequires:  libbonobo-devel >= 2.4.0
17 BuildRequires:  libglade2-devel >= 2.0.1
18 BuildRequires:  libgnomeprintui-devel >= 2.4.0
19 BuildRequires:  libgnomeui-devel >= 2.4.0
20 BuildRequires:  libtool
21 BuildRequires:  libxml2-devel >= 2.4.23
22 BuildRequires:  pkgconfig
23 Requires(post,postun):  scrollkeeper
24 Requires(post,postun):  shared-mime-info
25 Requires:       %{name}-libs = %{version}-%{release}
26 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27
28 %description
29 gLabels is a small stand-alone program for creating labels and
30 business cards.
31
32 %description -l pl
33 gLabels jest ma³ym, samodzielnym programem do tworzenia etykiet i
34 wizytówek.
35
36 %package libs
37 Summary:        glabels shared libraries
38 Summary(pl):    Biblioteki wspó³dzielone glabels
39 Group:          Libraries
40
41 %description libs
42 glabels shared libraries.
43
44 %description libs -l pl
45 Biblioteki wspó³dzielone glabels.
46
47 %package devel
48 Summary:        Header files for glabels
49 Summary(pl):    Pliki nag³ówkowe glabels
50 Group:          Development/Libraries
51 Requires:       %{name}-libs = %{version}-%{release}
52
53 %description devel
54 Header files for glabels.
55
56 %description devel -l pl
57 Pliki nag³ówkowe glabels.
58
59 %package static
60 Summary:        glabels static library
61 Summary(pl):    Statyczna biblioteka glabels
62 Group:          Development/Libraries
63 Requires:       %{name}-devel = %{version}-%{release}
64
65 %description static
66 glabels staic library.
67
68 %description static -l pl
69 Statyczna biblioteka glabels.
70
71 %prep
72 %setup -q
73 %patch0 -p1
74
75 mv -f po/{zh_TW.Big5,zh_TW}.po
76 %{__perl} -pi -e 's/zh_TW\.Big5/zh_TW/' configure.in
77
78 %build
79 glib-gettextize --copy --force
80 %{__libtoolize}
81 intltoolize --copy --force
82 gnome-doc-common --copy
83 %{__aclocal} -I %{_aclocaldir}/gnome2-macros
84 %{__autoheader}
85 %{__automake}
86 %{__autoconf}
87 %configure \
88         --enable-platform-gnome-2
89 %{__make}
90
91 %install
92 rm -rf $RPM_BUILD_ROOT
93
94 %{__make} install \
95         DESTDIR=$RPM_BUILD_ROOT
96
97 %find_lang %{name} --with-gnome --all-name
98
99 %clean
100 rm -rf $RPM_BUILD_ROOT
101
102 %post
103 umask 022
104 /usr/bin/scrollkeeper-update
105 update-mime-database %{_datadir}/mime
106 [ ! -x /usr/bin/update-desktop-database ] || /usr/bin/update-desktop-database >/dev/null 2>&1
107
108 %postun
109 umask 022
110 /usr/bin/scrollkeeper-update
111 update-mime-database %{_datadir}/mime
112 [ ! -x /usr/bin/update-desktop-database ] || /usr/bin/update-desktop-database >/dev/null 2>&1
113
114 %post   libs -p /sbin/ldconfig
115 %postun libs -p /sbin/ldconfig
116
117 %files -f %{name}.lang
118 %defattr(644,root,root,755)
119 %doc AUTHORS ChangeLog README TODO
120 %attr(755,root,root) %{_bindir}/*
121 %{_datadir}/%{name}
122 %{_datadir}/application-registry/*
123 %{_datadir}/mime-info/*
124 %{_datadir}/mime/packages/*
125 %{_mandir}/man1
126 %{_pixmapsdir}/%{name}
127 %{_pixmapsdir}/*.png
128 %{_desktopdir}/*.desktop
129 %{_omf_dest_dir}/%{name}
130
131 %files libs
132 %defattr(644,root,root,755)
133 %attr(755,root,root) %{_libdir}/lib*.so.*.*
134
135 %files devel
136 %defattr(644,root,root,755)
137 %attr(755,root,root) %{_libdir}/lib*.so
138 %{_libdir}/lib*.la
139 %{_includedir}/libglabels
140
141 %files static
142 %defattr(644,root,root,755)
143 %{_libdir}/lib*.a
This page took 0.069314 seconds and 2 git commands to generate.