Skip to content

Commit

Permalink
Drop support for RPMs.
Browse files Browse the repository at this point in the history
  • Loading branch information
fboender committed Aug 15, 2018
1 parent f4a69be commit a5e20d4
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions Makefile
Expand Up @@ -16,7 +16,6 @@ doc:

clean:
rm -rf rel_deb
rm -f *.rpm
rm -f *.deb
rm -f *.tar.gz
rm -f *.zip
Expand All @@ -35,7 +34,7 @@ release_check:
@if [ -z "$(REL_VERSION)" ]; then echo "REL_VERSION required"; exit 1; fi
echo "$(REL_VERSION)" > src/ansiblecmdb/data/VERSION

release: release_check release_src release_deb release_rpm release_wheel
release: release_check release_src release_deb release_wheel

release_src: release_check clean doc
# Cleanup. Only on release, since REL_VERSION doesn't exist otherwise
Expand Down Expand Up @@ -87,18 +86,6 @@ release_deb: release_check clean doc
rm -rf rel_deb
rm -rf $(PROG)-$(REL_VERSION)

release_rpm: release_check clean release_deb
alien -r -g $(PROG)-$(REL_VERSION).deb
sed -i '\:%dir "/":d' $(PROG)-$(REL_VERSION)/$(PROG)-$(REL_VERSION)-2.spec
sed -i '\:%dir "/usr/":d' $(PROG)-$(REL_VERSION)/$(PROG)-$(REL_VERSION)-2.spec
sed -i '\:%dir "/usr/share/":d' $(PROG)-$(REL_VERSION)/$(PROG)-$(REL_VERSION)-2.spec
sed -i '\:%dir "/usr/share/doc/":d' $(PROG)-$(REL_VERSION)/$(PROG)-$(REL_VERSION)-2.spec
sed -i '\:%dir "/usr/share/man/":d' $(PROG)-$(REL_VERSION)/$(PROG)-$(REL_VERSION)-2.spec
sed -i '\:%dir "/usr/share/man/man1/":d' $(PROG)-$(REL_VERSION)/$(PROG)-$(REL_VERSION)-2.spec
sed -i '\:%dir "/usr/lib/":d' $(PROG)-$(REL_VERSION)/$(PROG)-$(REL_VERSION)-2.spec
sed -i '\:%dir "/usr/bin/":d' $(PROG)-$(REL_VERSION)/$(PROG)-$(REL_VERSION)-2.spec
cd $(PROG)-$(REL_VERSION) && rpmbuild --buildroot='$(shell readlink -f $(PROG)-$(REL_VERSION))/' -bb --target noarch '$(PROG)-$(REL_VERSION)-2.spec'

release_wheel: release_check clean
echo "$(REL_VERSION)" > src/ansiblecmdb/data/VERSION
python setup.py bdist_wheel --universal
Expand Down

0 comments on commit a5e20d4

Please sign in to comment.