95fccab
%global realname esdl
d905ae2
%global upstream dgud
95fccab
95fccab
95fccab
Name:           erlang-%{realname}
070d9cf
Version:        1.3.1
a60c84b
Release:        25%{?dist}
dfd2131
Summary:        Erlang OpenGL/SDL API and utilities
85eac1a
License:        MIT
d905ae2
URL:		https://github.com/%{upstream}/%{realname}
070d9cf
%if 0%{?el7}%{?fedora}
d905ae2
VCS:		scm:git:https://github.com/%{upstream}/%{realname}.git
070d9cf
%endif
d905ae2
Source0:	https://github.com/%{upstream}/%{realname}/archive/esdl-%{version}/%{realname}-%{version}.tar.gz
6329335
BuildRequires:  SDL-devel
070d9cf
BuildRequires:	erlang-rebar
dfd2131
BuildRequires:	dos2unix
0023d19
BuildRequires:	gcc
070d9cf
# Dynamically loads erl_gl.so from erlang-wx package in sdl_video:setVideoMode/4
95fccab
Requires:	erlang-wx%{?_isa}
6329335
Provides:	esdl = %{version}-%{release}
dfd2131
Obsoletes:	%{name}-devel < 1.0.1-2
352cb34
%{?__erlang_drv_version:Requires: %{__erlang_drv_version}}
6329335
6329335
6329335
%description
6329335
A library that gives you access to SDL and OpenGL functionality in
6329335
your Erlang program.
6329335
6329335
6329335
%prep
e6f5a67
%setup -q -n %{realname}-esdl-%{version}
070d9cf
chmod 0644 Readme
070d9cf
find -type f -name '*.hrl' | xargs dos2unix
070d9cf
find -type f -name '*.[ch]' | xargs chmod 0644
070d9cf
sed -i -e "s,git,\"%{version}\",g" src/sdl.app.src
6329335
6329335
6329335
%build
5bc78b3
%{rebar_compile}
6329335
6329335
6329335
%install
d905ae2
%{erlang_install}
d905ae2
mkdir -p %{buildroot}%{_libdir}/erlang/lib/%{realname}-%{version}/src
070d9cf
install -p -m 0644 src/*.hrl %{buildroot}%{_libdir}/erlang/lib/%{realname}-%{version}/src
6329335
6329335
d905ae2
%check
d905ae2
%{erlang_test}
d905ae2
d905ae2
6329335
%files
d905ae2
%license license.terms
d905ae2
%doc Readme
d905ae2
%{erlang_appdir}/
6329335
6329335
6329335
%changelog
a60c84b
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.1-25
a60c84b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
a60c84b
91fbb6d
* Wed Jul 21 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.1-24
91fbb6d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
91fbb6d
acd4058
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.1-23
acd4058
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
acd4058
1c10519
* Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.1-22
1c10519
- Second attempt - Rebuilt for
1c10519
  https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
1c10519
1e2258e
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.1-21
1e2258e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
1e2258e
7106915
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.1-20
7106915
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
7106915
4c62229
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.1-19
4c62229
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
4c62229
73efa6f
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.1-18
73efa6f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
73efa6f
2ea92e5
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.1-17
2ea92e5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
2ea92e5
9acd516
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.1-16
9acd516
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
9acd516
14c9264
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.1-15
14c9264
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
14c9264
996e7b0
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.1-14
996e7b0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
996e7b0
d7837d7
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.1-13
d7837d7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
d7837d7
87ed16b
* Fri Apr 15 2016 Peter Lemenkov <lemenkov@gmail.com> - 1.3.1-12
87ed16b
- Drop unneeded macro
87ed16b
d905ae2
* Fri Apr  1 2016 Peter Lemenkov <lemenkov@gmail.com> - 1.3.1-11
d905ae2
- Rebuild with Erlang 18.3
d905ae2
dc9ad1d
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.1-10
dc9ad1d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
dc9ad1d
e63e782
* Mon Jan 18 2016 Peter Lemenkov <lemenkov@gmail.com> - 1.3.1-9
e63e782
- Rebuild with Erlang 18.2.2
e63e782
55f1c08
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.1-8
55f1c08
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
55f1c08
d10774c
* Tue Nov 04 2014 Peter Lemenkov <lemenkov@gmail.com> - 1.3.1-7
d10774c
- Rebuild with Erlang 17.3.3
d10774c
0562e6e
* Thu Aug 28 2014 Peter Lemenkov <lemenkov@gmail.com> - 1.3.1-6
0562e6e
- Rebuild with Erlang 17.2.1
0562e6e
af3c1c2
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.1-5
af3c1c2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
af3c1c2
de0b27c
* Sat Jul 12 2014 Ville Skyttä <ville.skytta@iki.fi> - 1.3.1-4
de0b27c
- Use new erlang macros to build with $RPM_OPT/LD_FLAGS etc, verbosely
de0b27c
3d32cf6
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.1-3
3d32cf6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
3d32cf6
8821ba3
* Fri Oct 25 2013 Peter Lemenkov <lemenkov@gmail.com> - 1.3.1-2
8821ba3
- Rebuild with new __erlang_drv_version
8821ba3
070d9cf
* Thu Sep 05 2013 Peter Lemenkov <lemenkov@gmail.com> - 1.3.1-1
070d9cf
- Ver. 1.3.1 (bugfix release)
070d9cf
- Switch building to rebar
070d9cf
cc8b72d
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3-3
cc8b72d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
cc8b72d
352cb34
* Sun Mar 10 2013 Peter Lemenkov <lemenkov@gmail.com> - 1.3-2
352cb34
- New Requires on Erlang's driver API version
352cb34
95fccab
* Sat Mar 09 2013 Peter Lemenkov <lemenkov@gmail.com> - 1.3-1
95fccab
- Ver. 1.3 (API compatible)
95fccab
db48c2d
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2-3
db48c2d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
db48c2d
1f9899e
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2-2
1f9899e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
1f9899e
8bf0dbc
* Thu May 10 2012 Peter Lemenkov <lemenkov@gmail.com> - 1.2-1
8bf0dbc
- new release 1.2
8bf0dbc
58bd183
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1-6
58bd183
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
58bd183
b91386f
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1-5
b91386f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
b91386f
3b1d02c
* Mon Jul 12 2010 Peter Lemenkov <lemenkov@gmail.com> - 1.0.1-4
3b1d02c
- Rebuild with new Erlang/OTP R14A
3b1d02c
- Small typo in %%changelog was fixed
3b1d02c
9e6a641
* Thu Jun 24 2010 Peter Lemenkov <lemenkov@gmail.com> - 1.0.1-3
9e6a641
- Fix building on x86_64
9e6a641
dfd2131
* Wed Jun 23 2010 Peter Lemenkov <lemenkov@gmail.com> - 1.0.1-2
dfd2131
- Rebuild
dfd2131
- Narrowed explicit requires
dfd2131
- No longer mention exact erlang's version in (Build)Requires
dfd2131
- Drop *-devel subpackage (includes moved to main package)
dfd2131
- Use Fedora-specific CFLAGS
3b1d02c
- Fixed DOS line endings and permissions
dfd2131
d7b482f
* Tue Aug 11 2009 Gerard Milmeister <gemi@bluewin.ch> - 1.0.1-1
d7b482f
- new release 1.0.1
d7b482f
14c32a2
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.96.0626-6
14c32a2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
14c32a2
6382bd0
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.96.0626-5
6382bd0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
6382bd0
85eac1a
* Thu Jul 17 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0.96.0626-4
85eac1a
- fix license tag
85eac1a
e0e3ade
* Mon Feb 18 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0.96.0626-3
e0e3ade
- Autorebuild for GCC 4.3
e0e3ade
9ed911b
* Mon Dec 10 2007 Gerard Milmeister <gemi@bluewin.ch> - 0.96.0626-2
9ed911b
- rebuild for erlang R12B
9ed911b
1e62ec6
* Sun Apr  8 2007 Gerard Milmeister <gemi@bluewin.ch> - 0.96.0626-1
1e62ec6
- new version 0.96.0626
1e62ec6
1a70c60
* Mon Aug 28 2006 Gerard Milmeister <gemi@bluewin.ch> - 0.95.0630-8
1a70c60
- Rebuild for FE6
1a70c60
0e79543
* Wed Jun  7 2006 Gerard Milmeister <gemi@bluewin.ch> - 0.95.0630-7
0e79543
- revert to use erlang R10B
0e79543
228ea52
* Thu May 18 2006 Gerard Milmeister <gemi@bluewin.ch> - 0.95.0630-6
228ea52
- rebuilt for erlang R11B-0
228ea52
6329335
* Tue Apr 25 2006 Gerard Milmeister <gemi@bluewin.ch> - 0.95.0630-4
6329335
- removed c_src directory
6329335
6329335
* Mon Apr 24 2006 Gerard Milmeister <gemi@bluewin.ch> - 0.95.0630-3
6329335
- renamed package to erlang-esdl
6329335
6329335
* Mon Apr 24 2006 Gerard Milmeister <gemi@bluewin.ch> - 0.95.0630-2
6329335
- split off devel package
6329335
6329335
* Thu Sep  8 2005 Gerard Milmeister <gemi@bluewin.ch> - 0.95.0630-1
6329335
- New Version 0.95.0630
6329335
6329335
* Sun Mar  6 2005 Gerard Milmeister <gemi@bluewin.ch> - 0.94.1025-1
6329335
- New Version 0.94.1025
6329335
6329335
* Sat Jul 17 2004 Gerard Milmeister <gemi@bluewin.ch> - 0:0.94.0615-0.fdr.1
6329335
- New Version 0.94.0615
6329335
6329335
* Sun Apr 11 2004 Gerard Milmeister <gemi@bluewin.ch> - 0:0.94.0125-0.fdr.1
6329335
- First Fedora release