]> git.pld-linux.org Git - packages/diacanvas.git/blob - diacanvas.spec
- missing pyreqeq, rel 3
[packages/diacanvas.git] / diacanvas.spec
1
2 %define         src_name        diacanvas2
3
4 Summary:        Library for easely creating diagrams
5 Summary(pl):    Biblioteka do prostego tworzenia diagramów
6 Name:           diacanvas
7 Version:        0.14.2
8 Release:        3
9 License:        GPL
10 Group:          X11/Libraries
11 Source0:        http://dl.sourceforge.net/diacanvas/%{src_name}-%{version}.tar.gz
12 # Source0-md5:  bd78fff277279abb003bb271baef3788
13 Patch0:         %{name}-no_check.patch
14 Patch1:         %{name}-text-stroke.patch
15 URL:            http://diacanvas.sourceforge.net/
16 BuildRequires:  autoconf
17 BuildRequires:  automake
18 BuildRequires:  libgnomeprintui-devel >= 2.2.0
19 BuildRequires:  libtool
20 BuildRequires:  pkgconfig
21 # for canvas.defs
22 BuildRequires:  python-gnome-devel >= 2.0.0
23 BuildRequires:  python-pygtk-devel >= 1:2.0.0
24 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25
26 %define         pydefsdir       %(pkg-config --variable=defsdir pygtk-2.0)
27
28 %description
29 Library for easy diagrams creation.
30
31 %description -l pl
32 Biblioteka do prostego tworzenia diagramów.
33
34 %package devel
35 Summary:        Diacanvas header files and development documentation
36 Summary(pl):    Pliki nag³ówkowe i dokumentacja biblioteki Diacanvas
37 Group:          X11/Development/Libraries
38 Requires:       %{name} = %{version}-%{release}
39
40 %description devel
41 Diacanvas header files and development documentation.
42
43 %description devel -l pl
44 Pliki nag³ówkowe i dokumentacja biblioteki Diacanvas.
45
46 %package static
47 Summary:        Diacanvas static libraries
48 Summary(pl):    Biblioteki statyczne Diacanvas
49 Group:          X11/Development/Libraries
50 Requires:       %{name}-devel = %{version}-%{release}
51
52 %description static
53 Diacanvas static libraries.
54
55 %description static -l pl
56 Biblioteki statyczne Diacanvas.
57
58 %package -n python-%{name}
59 Summary:        Diacanvas Python bindings
60 Summary(pl):    Wi±zania jêzyka Python do biblioteki Diacanvas
61 Group:          Libraries/Python
62 Requires:       %{name} = %{version}-%{release}
63 %pyrequires_eq  python-libs
64 Requires:       python-pygtk-gtk >= 1.99.16
65
66 %description -n python-%{name}
67 Diacanvas Python bindings.
68
69 %description -n python-%{name} -l pl
70 Wi±zania jêzyka Python do biblioteki Diacanvas.
71
72 %package -n python-%{name}-devel
73 Summary:        Diacanvas Python bindings development files
74 Summary(pl):    Pliki dla programistów wi±zañ jêzyka Python do biblioteki Diacanvas
75 Group:          Development/Languages/Python
76 Requires:       %{name} = %{version}-%{release}
77
78 %description -n python-%{name}-devel
79 Diacanvas Python bindings development files.
80
81 %description -n python-%{name}-devel -l pl
82 Pliki dla programistów wi±zañ jêzyka Python do biblioteki Diacanvas.
83
84 %prep
85 %setup -q -n %{src_name}-%{version}
86 %patch0 -p1
87 %patch1 -p1
88
89 %build
90 glib-gettextize -f
91 %{__libtoolize}
92 %{__aclocal}
93 %{__autoconf}
94 %{__automake}
95 %configure \
96         --enable-static \
97         --enable-gnome-print \
98         --enable-python \
99         --with-html-dir=%{_gtkdocdir}
100
101 %{__make} \
102         pythondir=%{py_sitedir} \
103         pyexecdir=%{py_sitedir}
104
105 %install
106 rm -rf $RPM_BUILD_ROOT
107
108 %{__make} install \
109         DESTDIR=$RPM_BUILD_ROOT \
110         pythondir=%{py_sitedir} \
111         pyexecdir=%{py_sitedir}
112
113 rm -f $RPM_BUILD_ROOT%{py_sitedir}/%{name}/*.{la,a}
114
115 %find_lang %{name}
116
117 %clean
118 rm -rf $RPM_BUILD_ROOT
119
120 %post   -p /sbin/ldconfig
121 %postun -p /sbin/ldconfig
122
123 %files -f %{name}.lang
124 %defattr(644,root,root,755)
125 %doc README ChangeLog TODO NEWS AUTHORS
126 %attr(755,root,root) %{_libdir}/*.so.*.*.*
127
128 %files devel
129 %defattr(644,root,root,755)
130 %attr(755,root,root) %{_libdir}/*.so
131 %{_libdir}/*.la
132 %{_includedir}/diacanvas
133 %{_gtkdocdir}/%{src_name}
134 %{_pkgconfigdir}/*
135
136 %files static
137 %defattr(644,root,root,755)
138 %{_libdir}/*.a
139
140 %files -n python-%{name}
141 %defattr(644,root,root,755)
142 %dir %{py_sitedir}/%{name}
143 %attr(755,root,root) %{py_sitedir}/%{name}/*.so
144 %{py_sitedir}/%{name}/*.py[co]
145
146 %files -n python-%{name}-devel
147 %defattr(644,root,root,755)
148 %{pydefsdir}/*
This page took 0.066642 seconds and 4 git commands to generate.