]> git.pld-linux.org Git - packages/gphoto2.git/blob - gphoto2.spec
- Release 0.5.
[packages/gphoto2.git] / gphoto2.spec
1 # TODO:
2 #   make --enable-docs work.
3 #   library should be installed in /usr/lib.
4 Summary:        Digital camera software
5 Summary(pl):    Oprogramowanie dla kamer cyfrowych
6 Name:           gphoto2
7 Version:        2.0
8 Release:        0.5
9 License:        GPL
10 Group:          X11/Applications
11 Source0:        http://www.gphoto.net/dist/gphoto2-2.0.tar.gz
12 Patch0:         %{name}-ncurses.patch
13 URL:            http://www.gphoto.net/
14 BuildRequires:  aalib-devel
15 BuildRequires:  bison
16 BuildRequires:  cdk-devel
17 BuildRequires:  findutils
18 BuildRequires:  gettext-devel
19 BuildRequires:  gtk-doc
20 BuildRequires:  libexif-devel
21 BuildRequires:  libjpeg-devel
22 BuildRequires:  libusb-devel
23 BuildRequires:  pkgconfig
24 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25
26 %define         _prefix         /usr/X11R6
27
28 %description
29 Digital camera software.
30
31 %description -l pl
32 Oprogramowanie dla kamer cyfrowych.
33
34 %package lib
35 Summary:        Libraries for digital cameras
36 Summary(pl):    Biblioteki obs³ugi kamer cyfrowych
37 Group:          Libraries
38
39 %description lib
40 Libraries for digital cameras.
41
42 %description lib -l pl
43 Biblioteki obs³ugi kamer cyfrowych.
44
45 %package static
46 Summary:        Static version of gphoto2-lib
47 Summary(pl):    Statyczna wersja gphoto2-lib
48 Group:          Development/Libraries
49
50 %description static
51 Static version of gphoto2-lib.
52
53 %description static -l pl
54 Statyczna wersja gphoto2-lib.
55
56 %package lib-devel
57 Summary:        Header files for gphoto2-lib
58 Summary(pl):    Pliki nag³ówkowe dla gphoto2-lib
59 Group:          Development/Libraries
60 Requires:       %{name}-lib = %{version}
61 Requires:       libexif-devel
62
63 %description lib-devel
64 Header files for gphoto2-lib.
65
66 %description lib-devel -l pl
67 Pliki nag³ówkowe dla gphoto2-lib.
68
69 %prep
70 %setup -q
71 %patch0 -p1
72
73 %build
74 autoconf
75 cd libgphoto2_port
76 autoconf
77 cd ..
78
79 %configure
80         #--enable-docs --- doesn't build.
81 %{__make}
82
83 # avoid relinking to allow build without openldap-devel already installed
84 for d in `find -name '*.la'`; do
85         echo "--- Fixing gile '$d'"
86         perl -pi -e 's/^relink_command.*//' $d
87 done
88
89 %install
90 rm -rf $RPM_BUILD_ROOT
91 install -d $RPM_BUILD_ROOT
92
93 %{__make} install DESTDIR=$RPM_BUILD_ROOT
94
95 install -d "$RPM_BUILD_ROOT/%{_pkgconfigdir}"
96 mv $RPM_BUILD_ROOT{/usr/X11R6/lib/pkgconfig,%{_pkgconfigdir}}
97
98 gzip -9nf README ChangeLog
99
100 %find_lang %{name}
101 %find_lang libgphoto2_port
102
103 %post lib -p /sbin/ldconfig
104 %postun lib -p /sbin/ldconfig
105
106 %clean
107 rm -rf $RPM_BUILD_ROOT
108
109 %files -f %{name}.lang
110 %defattr(644,root,root,755)
111 %doc *.gz
112 %attr(755,root,root) %{_bindir}/gphoto2
113 %{_datadir}/%{name}
114 %{_mandir}/*/*
115
116 %files lib -f libgphoto2_port
117 %defattr(644,root,root,755)
118 %{_libdir}/*.la
119 %{_libdir}/*.so.*.*.*
120 %{_libdir}/gphoto2/2.0/libgphoto2_*.??
121 %{_libdir}/gphoto2_port/0.0.4/libgphoto2_port_*.??
122
123 %files static
124 %defattr(644,root,root,755)
125 %{_libdir}/*.a
126 %{_libdir}/gphoto2/2.0/libgphoto2_*.a
127 %{_libdir}/gphoto2_port/0.0.4/libgphoto2_port_*.a
128
129 %files lib-devel
130 %defattr(644,root,root,755)
131 %attr(755,root,root) %{_bindir}/gphoto2-*
132 %{_includedir}/gphoto2
133 %{_libdir}/*.so
134 %{_pkgconfigdir}/*
This page took 0.054776 seconds and 4 git commands to generate.