]> git.pld-linux.org Git - packages/gphoto2.git/blob - gphoto2.spec
- Release 0.2.
[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.2
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 Requires:       %{name} = %{version}
39
40 %description lib
41 Libraries for digital cameras.
42
43 %description lib -l pl
44 Biblioteki obs³ugi kamer cyfrowych.
45
46 %package static
47 Summary:        Static version of gphoto2-lib
48 Summary(pl):    Statyczna wersja gphoto2-lib
49 Group:          Development/Libraries
50
51 %description static
52 Static version of gphoto2-lib.
53
54 %description static -l pl
55 Statyczna wersja gphoto2-lib.
56
57 %package lib-devel
58 Summary:        Header files for gphoto2-lib
59 Summary(pl):    Pliki nag³ówkowe dla gphoto2-lib
60 Group:          Development/Libraries
61 Requires:       %{name}-lib = %{version}
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 LD_LIBRARY_PATH="$RPM_BUILD_ROOT%{_libdir}"
94 export LD_LIBRARY_PATH
95
96 %{__make} install DESTDIR=$RPM_BUILD_ROOT
97
98 install -d "$RPM_BUILD_ROOT/%{_pkgconfigdir}"
99 mv $RPM_BUILD_ROOT{/usr/X11R6/lib/pkgconfig,%{_pkgconfigdir}}
100
101 gzip -9nf README ChangeLog
102
103 %find_lang %{name}
104 %find_lang libgphoto2_port
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}/*
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 %{_includedir}/gphoto2
132 %{_libdir}/*.so
133 %{_pkgconfigdir}/*
This page took 0.074209 seconds and 4 git commands to generate.