mirror of
https://github.com/terrapkg/packages.git
synced 2026-06-13 23:20:39 +00:00
9bbe91be03
* fix(lint): prismlauncher* fluent-icon-theme * fix(lint): fix lints for 6 packages (#578) * fix(lint): fix rpmlint lints for youki package * fix(lint): fix rpmlint lints for xdg-desktop-portal-pantheon * fix(lint): fix rpmlint lints for wingpanel package * fix(lint): fix rpmlint lints for wingpanel-indicator-sound package * fix(lint): fix rpmlint lints for wingpanel-indicator-session package * fix(lint): fix rpmlint lints for wingpanel-indicator-power package * fix(lint): * * fix random typos * feat: revert anda/desktops * fix: armcord-bin authy blahaj * fix: ... anki authy discord~ aya~sound groovy kotlin libappimage qt5-pim * fix: ... qdjango moby-buildx nim-nightly nim system76-scheduler unity-scope-home kondo pop-launcher fuc graalvm vala-lint-nightly * fix: armcord-bin authy blahaj groovy * fix: ... libappimage moby0buildx nim-nightly nim system76-scheduler subatomic * fix blahaj * fix: kondo * fix: libappimage moby-buildx system76-scheduler nim-nightly * fix: subatomic * fix: subatomic * fix: nim * Update anki.spec Signed-off-by: madomado <wboy111@outlook.com> * fix: libappimage nim-nightly * fix: moby-buildx subatomic * fix: moby-buildx subatomic --------- Signed-off-by: madomado <wboy111@outlook.com> Co-authored-by: HTGAzureX1212 <39023054+HTG-YT@users.noreply.github.com>
69 lines
2.1 KiB
RPMSpec
69 lines
2.1 KiB
RPMSpec
# Can not find libraries for some reason
|
|
%global debug_package %{nil}
|
|
|
|
Name: glewmx
|
|
Version: 1.13.0
|
|
Release: 1%{?dist}
|
|
Summary: OpenGL Extension Wrangler MX
|
|
|
|
License: GPL-3.0-or-later
|
|
URL: https://launchpad.net/ubuntu/+source/glewmx
|
|
Source0: http://archive.ubuntu.com/ubuntu/pool/universe/g/glewmx/glewmx_%{version}.orig.tar.gz
|
|
Source1: http://archive.ubuntu.com/ubuntu/pool/universe/g/glewmx/glewmx_%{version}-5.debian.tar.xz
|
|
|
|
BuildRequires: make
|
|
BuildRequires: gcc
|
|
BuildRequires: mesa-libGLU-devel
|
|
BuildRequires: pkgconfig(glu)
|
|
BuildRequires: libXmu-devel
|
|
BuildRequires: libXi-devel
|
|
|
|
%description
|
|
OpenGL Extension Wrangler MX. The MX version is discountinued but is maintained
|
|
in Ubuntu.
|
|
|
|
%package devel
|
|
Summary: Development files for %{name}
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
%description devel
|
|
The %{name}-devel package contains libraries and header files for
|
|
developing applications that use %{name}.
|
|
|
|
%prep
|
|
%autosetup -n glew-%{version}
|
|
tar -x -I 'xz -d -T0 -k' -f '%{SOURCE1}'
|
|
|
|
# Fix aarch64
|
|
sed -i 's!LDFLAGS.EXTRA = -L/usr/X11R6/lib -L/usr/lib!LDFLAGS.EXTRA = -L/usr/X11R6/lib64 -L/usr/lib64!' debian/patches/0001-Fix_FTBFS_on_kFreeBSD.patch
|
|
sed -i ':a;N;$!ba;s!LIBDIR = $(GLEW_DEST)/lib!LIBDIR = $(GLEW_DEST)/lib64!2' debian/patches/0001-Fix_FTBFS_on_kFreeBSD.patch
|
|
|
|
for i in debian/patches/*.patch; do patch -p1 < $i; done
|
|
sed -i 's:$(GLEW_DEST)/include/GL:$(GLEW_DEST)/include/glewmx-%{version}/GL:' Makefile
|
|
|
|
%build
|
|
# This doesn't get actually installed but is to change glewmx.pc before installation
|
|
%make_build LIBDIR="%{_libdir}"
|
|
sed -i 's:includedir=${prefix}/include:includedir=${prefix}/include/glewmx-%{version}:' glewmx.pc
|
|
|
|
%install
|
|
# Only MX is installed
|
|
%make_build DESTDIR=%{buildroot} INSTALL="/usr/bin/install -p" LIBDIR="%{_libdir}" install.mx
|
|
chmod +x %buildroot%_libdir/libGLEWmx.so.*
|
|
|
|
%files
|
|
%doc README.txt
|
|
%license LICENSE.txt
|
|
%{_libdir}/libGLEWmx.so.*
|
|
|
|
%files devel
|
|
%dir %{_includedir}/glewmx-%version
|
|
%dir %{_includedir}/glewmx-%version/GL
|
|
%{_includedir}/glewmx-%version/GL/*.h
|
|
%{_libdir}/libGLEWmx.a
|
|
%{_libdir}/libGLEWmx.so
|
|
%{_libdir}/pkgconfig/glewmx.pc
|
|
|
|
%changelog
|
|
%autochangelog
|