- added
[packages/dotnet-flickrnet.git] / dotnet-flickrnet.spec
1 %include        /usr/lib/rpm/macros.mono
2 Summary:        .NET support for Flickr
3 Name:           dotnet-flickrnet
4 Version:        2.1.5
5 Release:        3
6 License:        MIT
7 Group:          Libraries
8 Source0:        FlickrNet-25207.zip
9 # Source0-md5:  d20fe0d25a3888300f21e5ad3895c141
10 Source1:        flickrnet.pc
11 Patch0:         %{name}-assemblyinfo.patch
12 URL:            http://www.codeplex.com/FlickrNet
13 BuildRequires:  mono-csharp >= 1.1.16.1
14 BuildRequires:  pkgconfig
15 ExcludeArch:    i386
16 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17
18 %description
19 The Flickr.Net API is a .Net Library for accessing the Flickr API.
20 Written entirely in C# it can be accessed from with any .Net language
21 in .Net Framework 1.1, .Net Framework 2.0, .Net Compact Framework 2.0
22 and Mono.
23
24 %prep
25 %setup -q -c -n FlickrNet
26 %patch0 -p1
27
28 %build
29 cd FlickrNet
30 gmcs -target:library -out:FlickrNet.dll -r:System.Web.dll *.cs
31
32 %install
33 rm -rf $RPM_BUILD_ROOT
34 install -d $RPM_BUILD_ROOT{%{_libdir}/pkgconfig/,%{_libdir}/mono/flickrnet-%{version}}
35 install FlickrNet/FlickrNet.dll $RPM_BUILD_ROOT%{_libdir}/mono/flickrnet-%{version}
36 install -Dm644 %{SOURCE1} $RPM_BUILD_ROOT%{_libdir}/pkgconfig/
37 sed -i "s/@VERSION@/%{version}/" $RPM_BUILD_ROOT%{_libdir}/pkgconfig/flickrnet.pc
38
39 %clean
40 rm -rf $RPM_BUILD_ROOT
41
42 %files
43 %defattr(644,root,root,755)
44 %{_libdir}/mono/flickrnet-%{version}/*.dll
45 %{_pkgconfigdir}/flickrnet.pc
This page took 0.044091 seconds and 3 git commands to generate.