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