rpms/sms_ntsc/devel import.log, NONE, 1.1 sms_ntsc.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

David Timms dtimms at fedoraproject.org
Sun Sep 21 06:53:20 UTC 2008


Author: dtimms

Update of /cvs/pkgs/rpms/sms_ntsc/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv2551/devel

Modified Files:
	.cvsignore sources 
Added Files:
	import.log sms_ntsc.spec 
Log Message:
Initial import of sms_ntsc .src.rpm into fedora



--- NEW FILE import.log ---
sms_ntsc-0_2_3-3_fc9:HEAD:sms_ntsc-0.2.3-3.fc9.src.rpm:1221979909


--- NEW FILE sms_ntsc.spec ---
%define        libname lib%{name}.so

Name:          sms_ntsc
Version:       0.2.3
Release:       3%{?dist}
Summary:       Provides an SMS NTSC video filtering library

Group:         System Environment/Libraries
License:       LGPLv2+
URL:           http://www.slack.net/~ant/libs/ntsc.html
Source0:       http://blargg.fileave.com/libs/%{name}-%{version}.zip
BuildRoot:     %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
BuildRequires: SDL-devel

%description
Sega Master System NTSC video filter library. Reproduces the significant
artifacts on the vertical edges of some colors that occur when colours, and 
the general color mixing that occur when graphics are rendered via an NTSC
video connection to a television. Accepts pixels in 16-bit RGB or 12-bit BGR
(native Game Gear palette format). It can also output an RGB palette for use
in a regular blitter.


%package devel
Summary:        Development files for sms_ntsc
Group:          Development/Libraries
Requires:       %{name} = %{version}-%{release}

%description devel
Development files for sms_ntsc


%package demos
Summary:        Examples using sms_ntsc
Group:          Development/Libraries

%description demos
Examples using sms_ntsc


%prep
%setup -q
# Some location cleanups
sed -i 's|"SDL.h"|<SDL/SDL.h>|' demo_impl.h
sed -i 's|test.bmp|%{_datadir}/%{name}/test.bmp|' demo.c

#Fix EOL encoding
%{__sed} -i 's/\r//' *.txt


%build
# Compile library, link and give it an soname
gcc -c %{optflags} -fPIC %{name}.c
gcc %{optflags} -shared -Wl,-soname,%{libname}.0 -Wl,-lm -o %{libname}.%{version} %{name}.o

# Make symlinks now as they are needed
ln -s %{libname}.%{version} %{libname}.0
ln -s %{libname}.%{version} %{libname}

# Compile demos
gcc %{optflags} benchmark.c -o %{name}_benchmark -L. -l%{name}
gcc %{optflags} demo.c -o %{name}_demo -L. -l%{name} -lSDL


%install
rm -rf %{buildroot}
mkdir -p %{buildroot}%{_bindir} %{buildroot}%{_libdir} \
         %{buildroot}%{_includedir} %{buildroot}%{_datadir}/%{name}

# Install include
install -pm 0644 %{name}.h %{buildroot}%{_includedir}
install -pm 0644 %{name}_config.h %{buildroot}%{_includedir}

# Install example
install -pm 0644 test.bmp %{buildroot}%{_datadir}/%{name}

# Install lib and symlinks
install -pm 0755 %{libname}.%{version} %{buildroot}%{_libdir}
mv %{libname}.0 %{buildroot}%{_libdir}
mv %{libname} %{buildroot}%{_libdir}

# Install demos
install -pm0755 %{name}_benchmark %{buildroot}%{_bindir}
install -pm0755 %{name}_demo %{buildroot}%{_bindir}


%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig


%clean
rm -rf %{buildroot}


%files
%defattr(-,root,root,-)
%{_libdir}/%{libname}.0
%{_libdir}/%{libname}.%{version}
%doc changes.txt license.txt


%files devel
%defattr(-,root,root,-)
%{_libdir}/%{libname}
%{_includedir}/%{name}.h
%{_includedir}/%{name}_config.h
%doc %{name}.txt readme.txt


%files demos
%defattr(-,root,root,-)
%{_datadir}/%{name}
%{_bindir}/*


%changelog
* Thu Sep 11 2008 David Timms <iinet.net.au at dtimms> 0.2.3-3
- Initial import and release bump into fedora

* Tue Aug 14 2007 Ian Chapman <packages at amiga-hardware.com> 0.2.3-2
- Updated license field due to new guidelines
- Improved use of macros

* Mon Jun 11 2007 Ian Chapman <packages at amiga-hardware.com> 0.2.3-1
- Initial Release


Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/sms_ntsc/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore	21 Sep 2008 00:24:34 -0000	1.1
+++ .cvsignore	21 Sep 2008 06:52:50 -0000	1.2
@@ -0,0 +1 @@
+sms_ntsc-0.2.3.zip


Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/sms_ntsc/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	21 Sep 2008 00:24:34 -0000	1.1
+++ sources	21 Sep 2008 06:52:50 -0000	1.2
@@ -0,0 +1 @@
+4aea73f7289a1a28fea2450d6d0cff66  sms_ntsc-0.2.3.zip




More information about the fedora-extras-commits mailing list