- release 4
[packages/dotnet-libgphoto2-sharp.git] / dotnet-libgphoto2-sharp.spec
1 %include        /usr/lib/rpm/macros.mono
2 Summary:        .NET binding to libgphoto2
3 Summary(pl.UTF-8):      Wiązanie .NET dla libgphoto2
4 Name:           dotnet-libgphoto2-sharp
5 Version:        2.3.0
6 Release:        4
7 License:        LGPL
8 Group:          Libraries
9 Source0:        http://dl.sourceforge.net/gphoto/libgphoto2-sharp-%{version}.tar.bz2
10 # Source0-md5:  5099e2d5ee928a33546eb0c56ad024cd
11 Patch0:         %{name}-am.patch
12 Patch1:         %{name}-version.patch
13 URL:            http://www.gphoto.org/
14 BuildRequires:  autoconf >= 2.59
15 BuildRequires:  automake >= 1:1.9
16 BuildRequires:  libgphoto2-devel >= 2.3.0
17 BuildRequires:  libtool
18 BuildRequires:  mono-csharp >= 1.1.7
19 BuildRequires:  rpmbuild(monoautodeps)
20 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
22 %description
23 .NET binding to libgphoto2.
24
25 %description -l pl.UTF-8
26 Wiązanie .NET dla libgphoto2.
27
28 %package devel
29 Summary:        Development files for .NET binding to libgphoto2
30 Summary(pl.UTF-8):      Pliki programistyczne wiązani .NET dla libgphoto2
31 Group:          Development/Libraries
32 Requires:       %{name} = %{version}-%{release}
33
34 %description devel
35 Development files for .NET binding to libgphoto2.
36
37 %description devel -l pl.UTF-8
38 Pliki programistyczne wiązani .NET dla libgphoto2.
39
40 %prep
41 %setup -q -n libgphoto2-sharp-%{version}
42 %patch0 -p1
43 %patch1 -p1
44
45 %build
46 %{__libtoolize}
47 %{__aclocal} -I m4m
48 %{__autoconf}
49 %{__automake}
50 %configure
51 %{__make} -j1
52
53 %install
54 rm -rf $RPM_BUILD_ROOT
55
56 %{__make} install \
57         DESTDIR=$RPM_BUILD_ROOT \
58         cslibdir=%{_prefix}/lib/mono/libgphoto2-sharp
59
60 %{__sed} -i "/^Libraries/s@%{_libdir}/libgphoto2-sharp@%{_libdir}/mono/libgphoto2-sharp@" \
61         $RPM_BUILD_ROOT%{_pkgconfigdir}/libgphoto2-sharp.pc
62
63 %clean
64 rm -rf $RPM_BUILD_ROOT
65
66 %files
67 %defattr(644,root,root,755)
68 #%{_prefix}/lib/mono/gac/libgphoto2-sharp
69 %{_prefix}/lib/mono/libgphoto2-sharp
70
71 %files devel
72 %defattr(644,root,root,755)
73 #%{_prefix}/lib/mono/libgphoto2-sharp
74 %{_pkgconfigdir}/libgphoto2-sharp.pc
This page took 0.055426 seconds and 3 git commands to generate.