5dd841ccef53439427148e811d729e910888ef42
[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.2.0
5 Release:        1
6 License:        MIT
7 Group:          Libraries
8 Source0:        FlickrNet2.2-Src-48055.zip
9 # Source0-md5:  534b3436762ce1bfb2568c9774340f0c
10 Source1:        flickrnet.pc
11 Patch0:         %{name}-assemblyinfo.patch
12 URL:            http://www.codeplex.com/FlickrNet
13 # FIXME: ugly workaround for broken patch handling in our CVS
14 BuildRequires:  dos2unix
15 BuildRequires:  mono-csharp >= 1.1.16.1
16 BuildRequires:  pkgconfig
17 ExcludeArch:    i386
18 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19
20 %description
21 The Flickr.Net API is a .Net Library for accessing the Flickr API.
22 Written entirely in C# it can be accessed from with any .Net language
23 in .Net Framework 1.1, .Net Framework 2.0, .Net Compact Framework 2.0
24 and Mono.
25
26 %prep
27 %setup -q -c -n FlickrNet
28 dos2unix FlickrNet/AssemblyInfo.cs
29 %patch0 -p1
30
31 %build
32 cd FlickrNet
33 gmcs -target:library -out:FlickrNet.dll -r:System.Web.dll *.cs
34
35 %install
36 rm -rf $RPM_BUILD_ROOT
37 install -d $RPM_BUILD_ROOT{%{_libdir}/pkgconfig/,%{_libdir}/mono/flickrnet-%{version}}
38 install FlickrNet/FlickrNet.dll $RPM_BUILD_ROOT%{_libdir}/mono/flickrnet-%{version}
39 install -Dm644 %{SOURCE1} $RPM_BUILD_ROOT%{_libdir}/pkgconfig/
40 sed -i "s/@VERSION@/%{version}/" $RPM_BUILD_ROOT%{_libdir}/pkgconfig/flickrnet.pc
41
42 %clean
43 rm -rf $RPM_BUILD_ROOT
44
45 %files
46 %defattr(644,root,root,755)
47 %dir %{_libdir}/mono/flickrnet-%{version}
48 %{_libdir}/mono/flickrnet-%{version}/*.dll
49 %{_pkgconfigdir}/flickrnet.pc
This page took 0.067889 seconds and 2 git commands to generate.