259f48d
Name:		AntTweakBar
David Brown cf970c9
Version:	1.16
df8bc26
Release:	9%{?dist}
259f48d
Summary:	GUI library for videogame property editing UIs
259f48d
259f48d
Group:		Applications/Internet
259f48d
License:	zlib
259f48d
URL:		http://www.antisphere.com/Wiki/tools:anttweakbar
David Brown 6046261
Source0:	http://www.antisphere.com/Tools/AntTweakBar/AntTweakBar_116.zip
259f48d
259f48d
BuildRequires: mesa-libGL-devel
259f48d
BuildRequires: mesa-libGLU-devel
259f48d
BuildRequires: libX11-devel
259f48d
BuildRequires: xorg-x11-proto-devel
259f48d
1ec66c3
# DOS mode file in upstream source makes this necessary for any patches
259f48d
%global _default_patch_fuzz 2
259f48d
259f48d
%description
259f48d
Library for easily creating and using tweakable properties in an OpenGL
259f48d
or SDL application, designed primarily for professional game developers.
259f48d
259f48d
%package devel
259f48d
Summary: Header files for AntTweakBar
259f48d
Group: Development/Libraries
259f48d
Requires: %{name} = %{version}-%{release}
259f48d
259f48d
%description devel
259f48d
Header files for developing applications making use of AntTweakBar.
259f48d
259f48d
%prep
259f48d
%setup -q -n AntTweakBar
259f48d
259f48d
# fix encoding in license file
259f48d
iconv --from=iso-8859-1 --to=utf8 ./License.txt > ./License.txt.utf8
259f48d
touch -r ./License.txt ./License.txt.utf8
259f48d
mv ./License.txt.utf8 ./License.txt
259f48d
259f48d
# fix DOS newlines in one of our examples
259f48d
sed "s|\r||g" ./examples/TwSimpleGLUT.c > ./TwSimpleGLUT.c
259f48d
touch -r ./examples/TwSimpleGLUT.c ./TwSimpleGLUT.c
259f48d
mv ./TwSimpleGLUT.c ./examples/TwSimpleGLUT.c
259f48d
259f48d
# fix file permissions (unzip makes everything executable)
259f48d
# not doing this causes spurious executable bit warnings in
259f48d
# rpmlint on the debuginfo package and on the doc files
259f48d
find Readme.txt License.txt src examples include -type f -print0 | xargs -0 chmod 0644
822d49a
find Readme.txt License.txt src examples include -type f -print0 | xargs -0 sed -i "s|\r||g"
259f48d
259f48d
%build
259f48d
cd src
f6941c3
make %{?_smp_mflags} CXXCFG="%{optflags}"
259f48d
259f48d
%install
259f48d
rm -rf "%{buildroot}"
259f48d
install -m 644 -D include/AntTweakBar.h "%{buildroot}/%{_includedir}/AntTweakBar.h"
f5cb735
install -m 755 -D lib/libAntTweakBar.so "%{buildroot}/%{_libdir}/libAntTweakBar.so.1.0.0"
f5cb735
ln -s "%{_libdir}/libAntTweakBar.so.1.0.0" "%{buildroot}/%{_libdir}/libAntTweakBar.so.1"
f5cb735
ln -s "%{_libdir}/libAntTweakBar.so.1.0.0" "%{buildroot}/%{_libdir}/libAntTweakBar.so"
259f48d
259f48d
%files
259f48d
%doc Readme.txt
259f48d
%doc License.txt
f5cb735
%{_libdir}/libAntTweakBar.so.*
259f48d
259f48d
%files devel
259f48d
%{_includedir}/*
259f48d
%{_libdir}/libAntTweakBar.so
259f48d
%doc examples/TwAdvanced1.cpp
259f48d
%doc examples/TwSimpleGLFW.c
259f48d
%doc examples/TwSimpleGLUT.c
259f48d
%doc examples/TwSimpleSDL.c
259f48d
%doc examples/TwString.cpp
259f48d
259f48d
%post -p /sbin/ldconfig
259f48d
259f48d
%postun -p /sbin/ldconfig
259f48d
259f48d
%changelog
df8bc26
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.16-9
df8bc26
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
df8bc26
992db61
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.16-8
992db61
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
992db61
41d48c0
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.16-7
41d48c0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
41d48c0
dfb85b5
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.16-6
dfb85b5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
dfb85b5
f06fcc9
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.16-5
f06fcc9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
f06fcc9
18385de
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.16-4
18385de
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
18385de
b56c3ab
* Tue Jun 16 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.16-3
b56c3ab
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
b56c3ab
0f11449
* Fri Aug 15 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.16-2
0f11449
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
0f11449
David Brown cf970c9
* Tue Jul 08 2014 David Brown <david.brown@pnnl.gov> - 1.16-1
David Brown cf970c9
- New upstream version
David Brown cf970c9
c183184
* Fri Jun 06 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.14-8
c183184
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
c183184
87039fc
* Fri Aug 02 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.14-7
87039fc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
87039fc
72d0edb
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.14-6
72d0edb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
72d0edb
d87b6c9
* Thu Aug 16 2012 David Brown <david.brown@pnnl.gov> - 1.14-5
f5cb735
- Upstream put out new source tarball
f5cb735
- Fixed the shared library symlinks as well
822d49a
- Fixed more dos new lines
f5cb735
2892b45
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.14-4
2892b45
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
2892b45
7f17fd4
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.14-3
7f17fd4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
7f17fd4
David Brown cf970c9
* Sun Jun 12 2011 Sean Middleditch <sean@middleditch.us> - 1.14-2
f6941c3
- Use the RPM_OPT_FLAGS in building on newer Fedora setups.
f6941c3
David Brown cf970c9
* Sat Jun 11 2011 Sean Middleditch <sean@middleditch.us> - 1.14-1
1ec66c3
- Updated to upsteam 1.14 release.
1ec66c3
- Dropped upstream patches.
1ec66c3
c55426a
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.13-6
c55426a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
c55426a
David Brown cf970c9
* Fri Oct 23 2009 Sean Middleditch <sean@middleditch.us> 1.13-5
259f48d
- Correct accidental macro expansion in changelog text.
259f48d
David Brown cf970c9
* Fri Oct 23 2009 Sean Middleditch <sean@middleditch.us> 1.13-4
259f48d
- Use %%global instead of %%define.
259f48d
- Note that patches have been sent to upstream.
259f48d
David Brown cf970c9
* Fri Oct 23 2009 Sean Middleditch <sean@middleditch.us> 1.13-3
259f48d
- Preserve timestamp on License.txt.
259f48d
- Renamed patches to comply with naming policy.
259f48d
- Included Linux-relevant examples in documentation for -devel package.
259f48d
David Brown cf970c9
* Thu Oct 22 2009 Sean Middleditch <sean@middleditch.us> 1.13-2
259f48d
- Fix shared library soname and ld links.
259f48d
259f48d
* Wed Oct 21 2009 Sean Middleditch <sean@middleditch.us> 1.13-1
259f48d
- Initial RPM release.