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